package puziran.sofa.util;

import org.json.JSONObject;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;



public class GsonTools {
	static Gson g=new GsonBuilder().create();
	public static String getCommonJson(String result,String msg,String count,Object obj){
		JSONObject json = new JSONObject();
		json.put("result",result);
		json.put("msg",msg);
		json.put("count",count);
		json.put("dataJson",g.toJson(obj));
		return json.toString();
	}
}
//{"result":"a","msg":"a1","count":"a2","dataJson":"[]}